/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pazi_laba1;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;

/**
 *
 * @author Mike
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here

        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        if(!(new File ("conf.cfg").exists()))
        { new BufferedWriter(new FileWriter("conf.cfg")).write("ADMIN\n");
            
        }
        Enter_frame e_f=new Enter_frame();
        e_f.setVisible(true);
        Runtime rt = Runtime.getRuntime();
        try {
            
            rt.exec("osk");
        } catch (IOException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
